import axios from "axios";

const teacherApi = {
  addTeacher(data) {
    return axios.post('/teachers/addTeachers', data)
  },
  getTeacher(params) {
    return axios.get('/teachers/getTeachers', {
      params
    })
  },
  deleteTeacher(_id) {
    return axios.delete('/teachers/deleteTeachers', {
      data: {
        _id
      }
    })
  },
  updateTeacher(data) {
    return axios.put('/teachers/updateTeachers', data)
  }
}

export default teacherApi